<%@page contentType="text/xml" pageEncoding="UTF-8"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
          "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<!--
Esempio visto da http://www.w3.org/TR/xforms11/#concepts-xhtml
-->

<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:xforms="http://www.w3.org/2002/xforms">
    <head>

        <xforms:model>
          <xforms:instance>
            <ecommerce xmlns="">
              <method/>
              <number/>
              <expiry/>
            </ecommerce>
          </xforms:instance>
          <xforms:submission action="" method="post" id="submit"/>
        </xforms:model>

        <title>XForm</title>
    </head>
    <body>

        <h1>Form XForms</h1>
        <xforms:select1 ref="method">
          <xforms:label>Select Payment Method:</xforms:label>
          <xforms:item>
            <xforms:label>Cash</xforms:label>
            <xforms:value>cash</xforms:value>
          </xforms:item>
          <xforms:item>
            <xforms:label>Credit</xforms:label>
            <xforms:value>cc</xforms:value>
          </xforms:item>
        </xforms:select1>
        <xforms:input ref="number">
          <xforms:label>Credit Card Number:</xforms:label>
        </xforms:input>
        <xforms:input ref="expiry">
          <xforms:label>Expiration Date:</xforms:label>
        </xforms:input>
        <xforms:submit submission="submit">
          <xforms:label>Submit</xforms:label>
        </xforms:submit>


    </body>
</html>